package com.core.gwt.place.client;

/**
 * A type object to be provided by each concrete {@link PlaceWithType}
 * implementation. Used to map URL tokens to place instances.
 */
public interface PlaceType {
	/**
	 * Returns a place instance initialized from the specified token.
	 */
	public PlaceWithType getPlace(String token);

	/**
	 * Returns a unique prefix to be used when constructing the URL token for
	 * this type of place.
	 */
	public String getPrefix();
}